<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增采集数据点位')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-gzmx_tag-add">
            <input name="fdwdm_name" id="fdwdm_name" class="form-control" type="hidden">
            <input name="fdwdm" id="fdwdm" class="form-control" type="hidden">
            <input name="ejdw_id" id="ejdw_id" class="form-control" type="hidden">
            <input name="ejdw_name" id="ejdw_name" class="form-control" type="hidden">
            <input name="zyq_id" id="zyq_id" class="form-control" type="hidden">
            <input name="zyq_name" id="zyq_name" class="form-control" type="hidden">
            <input name="dw_3_id" id="dw_3_id" class="form-control" type="hidden">
            <input name="dw_3_name" id="dw_3_name" class="form-control" type="hidden">
            <input name="dw_4_id" id="dw_4_id" class="form-control" type="hidden">
            <input name="dw_4_name" id="dw_4_name" class="form-control" type="hidden">
            <input name="dw_5_id" id="dw_5_id" class="form-control" type="hidden">
            <input name="dw_5_name" id="dw_5_name" class="form-control" type="hidden">
            <input name="deptId" id="deptId" class="form-control" type="hidden">
             
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位名称：</label>
                <div class="col-sm-8">
                    <input name="Description" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位ID：</label>
                <div class="col-sm-8">
                    <input name="SourceTag" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">连接方式ID：</label>
                <div class="col-sm-8">
                    <input name="ljfs_id" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最大值：</label>
                <div class="col-sm-8">
                    <input name="Max_value" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最小值：</label>
                <div class="col-sm-8">
                    <input name="Min_value" class="form-control" type="text">
                </div>
            </div>
               <div class="form-group">    
                <label class="col-sm-3 control-label">故障模型ID：</label>
                <div class="col-sm-8">
                    <input name="gzmx_id" class="form-control" type="text">
                </div>
            </div>
            <!--  
            
            <div class="form-group">    
                <label class="col-sm-3 control-label">采集时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="TimeStam" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">读取时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="FomatedTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采集值：</label>
                <div class="col-sm-8">
                    <input name="Value" class="form-control" type="text">
                </div>
            </div>
            
            
            <div class="form-group">    
                <label class="col-sm-3 control-label">父点位代码：</label>
                <div class="col-sm-8">
                    <input name="fdwdm" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">父点位名称：</label>
                <div class="col-sm-8">
                    <input name="fdwdm_name" class="form-control" type="text">
                </div>
            </div>
         
            <div class="form-group">    
                <label class="col-sm-3 control-label">二级单位ID：</label>
                <div class="col-sm-8">
                    <input name="ejdw_id" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">二级单位名称：</label>
                <div class="col-sm-8">
                    <input name="ejdw_name" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">作业区ID：</label>
                <div class="col-sm-8">
                    <input name="zyq_id" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">作业区名称：</label>
                <div class="col-sm-8">
                    <input name="zyq_name" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位3级ID：</label>
                <div class="col-sm-8">
                    <input name="dw_3_id" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位3级名称：</label>
                <div class="col-sm-8">
                    <input name="dw_3_name" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位4级ID：</label>
                <div class="col-sm-8">
                    <input name="dw_4_id" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位4级名称：</label>
                <div class="col-sm-8">
                    <input name="dw_4_name" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位5级ID：</label>
                <div class="col-sm-8">
                    <input name="dw_5_id" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位5级名称：</label>
                <div class="col-sm-8">
                    <input name="dw_5_name" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单位ID：</label>
                <div class="col-sm-8">
                    <input name="deptId" class="form-control" type="text">
                </div>
            </div>
            -->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "gzmx_tag/gzmx_tag"
        $("#form-gzmx_tag-add").validate({
            focusCleanup: true
        });
$(function(){
	
	//alert([[${gzmx_scdw.id}]]);
	
	$("#fdwdm_name").val([[${gzmx_scdw.dwmc}]]); 
	$("#fdwdm").val([[${gzmx_scdw.id}]]); 
	$("#ejdw_id").val([[${gzmx_scdw.ejdwId}]]); 
    $("#ejdw_name").val([[${gzmx_scdw.ejdwName}]]); 
    $("#zyq_id").val([[${gzmx_scdw.zyqId}]]); 
    $("#zyq_name").val([[${gzmx_scdw.zyqName}]]); 
    $("#dw_3_id").val([[${gzmx_scdw.dw_3_id}]]); 
    $("#dw_3_name").val([[${gzmx_scdw.dw_3_name}]]); 
    $("#dw_4_id").val([[${gzmx_scdw.dw_4_id}]]); 
    $("#dw_4_name").val([[${gzmx_scdw.dw_4_name}]]); 
    $("#dw_5_id").val([[${gzmx_scdw.dw_5_id}]]); 
    $("#dw_5_name").val([[${gzmx_scdw.dw_5_name}]]); 
    $("#deptId").val([[${gzmx_scdw.deptId}]]); 
})
        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-gzmx_tag-add').serialize());
            }
        }

        $("input[name='TimeStam']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='FomatedTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>